package com.dis.resource.mapper;

import com.dis.pojo.entity.Region;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RegionMapper {

    List<Region> selectAll();

    Region selectById(Integer regionId);

    int countByParentId(Integer parentId);

    void insert(Region region);

    void update(Region region);

    void deleteById(Integer regionId);

    List<Region> selectByIds( List<Integer> ids);

    List<Region> selectByParentId(Integer parentId);
}